import request from '@/utils/request'

// 查询供应商订单列表
export function listScmSupplierOrders(query) {
  return request({
    url: '/scm/scmSupplierOrders/list',
    method: 'get',
    params: query
  })
}

// 查询供应商订单详细
export function getScmSupplierOrders(id) {
  return request({
    url: '/scm/scmSupplierOrders/' + id,
    method: 'get'
  })
}

// 新增供应商订单
export function addScmSupplierOrders(data) {
  return request({
    url: '/scm/scmSupplierOrders',
    method: 'post',
    data: data
  })
}

// 修改供应商订单
export function updateScmSupplierOrders(data) {
  return request({
    url: '/scm/scmSupplierOrders',
    method: 'put',
    data: data
  })
}

// 删除供应商订单
export function delScmSupplierOrders(id) {
  return request({
    url: '/scm/scmSupplierOrders/' + id,
    method: 'delete'
  })
}

// 转换创建供应商订单
export function createScmSupplierOrders(data) {
  return request({
    url: '/scm/scmSupplierOrders/create',
    method: 'post',
    data: data
  })
}
